(function ($) {
    $.fn.imageBox = function (settings) {
        var holder = $(this);
        var defaults = {
            isToolTips:false,
            isOnMouseOver:true,
            //isBlockUI: true
        }
        var options = jQuery.extend(defaults, settings);
        if(options.isToolTips == false)
        {
            if(options.isOnMouseOver == true){
                $(holder).find("a[rel^='prettyPhoto']").mouseover(function() {
                    OnMouseOver($(this));
                })
                .mouseout(function(){
                    OnMouseOut($(this));
                });
            }
            $(holder).find("a[rel^='prettyPhoto']").prettyPhoto({ social_tools: '' });
        }else{
            $(holder).find("a[rel^='prettyPhoto']").each(function(){
                
                var settings = {
                    showDiv:"",tipName: "Tips",width: "",ajax: false,url:$(this).attr("href"),
                };
                $(this).find(".ShowDetail_thumbImage").toolTipsX(settings);
                $(this).attr("href","#");
            });
        }
        function OnMouseOver(holder)
        {
            holder.find("div img").before("<div class='zoomImageIcon ui-icon ui-icon-zoomin' style=\"position:absolute\"><div>");
        }
        function OnMouseOut(holder)
        {
            holder.find("div").find(".zoomImageIcon").remove();
        }
    };//end
})(jQuery);